<script type="text/javascript">
var ThinkPHP = window.Think = {
    "ROOT": "__ROOT__", //当前网站地址
    "APP": "__APP__", //当前项目地址
    "PUBLIC": "__PUBLIC__", //项目公共目录地址
    "JS_DOMAIN": "{:C('JS_DOMAIN')}",
    "DEEP": "{:C('URL_PATHINFO_DEPR')}", //PATHINFO分割符
    "MODEL": ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
    "VAR": ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"],
    "ISLOGIN": {: is_login(1)}
}
</script>